﻿using Microsoft.EntityFrameworkCore.Migrations;

namespace Sunlit.House.Migrations
{
    public partial class update_buys : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.AddColumn<int>(
                name: "Amount",
                table: "AbpUsers",
                type: "int",
                nullable: false,
                defaultValue: 0);

            migrationBuilder.AddColumn<bool>(
                name: "InSlider",
                table: "AbpSecondHands",
                type: "bit",
                nullable: false,
                defaultValue: false);

            migrationBuilder.AddColumn<bool>(
                name: "IsActive",
                table: "AbpGroupItems",
                type: "bit",
                nullable: false,
                defaultValue: false);

            migrationBuilder.AddColumn<int>(
                name: "MemberProfit",
                table: "AbpGroupItems",
                type: "int",
                nullable: false,
                defaultValue: 0);

            migrationBuilder.AddColumn<int>(
                name: "ChiefProfit",
                table: "AbpGroupBuys",
                type: "int",
                nullable: false,
                defaultValue: 0);

            migrationBuilder.AddColumn<bool>(
                name: "IsActive",
                table: "AbpGroupBuys",
                type: "bit",
                nullable: false,
                defaultValue: false);

            migrationBuilder.AddColumn<bool>(
                name: "InSlider",
                table: "AbpFloors",
                type: "bit",
                nullable: false,
                defaultValue: false);
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "Amount",
                table: "AbpUsers");

            migrationBuilder.DropColumn(
                name: "InSlider",
                table: "AbpSecondHands");

            migrationBuilder.DropColumn(
                name: "IsActive",
                table: "AbpGroupItems");

            migrationBuilder.DropColumn(
                name: "MemberProfit",
                table: "AbpGroupItems");

            migrationBuilder.DropColumn(
                name: "ChiefProfit",
                table: "AbpGroupBuys");

            migrationBuilder.DropColumn(
                name: "IsActive",
                table: "AbpGroupBuys");

            migrationBuilder.DropColumn(
                name: "InSlider",
                table: "AbpFloors");
        }
    }
}
